1*0a6a1f1dSLionel Sambuc // RUN: rm -rf "%t" 2*0a6a1f1dSLionel Sambuc // RUN: mkdir "%t" 3*0a6a1f1dSLionel Sambuc // RUN: not env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTIONS=1 %clang -fsyntax-only "%s" 2>&1 | FileCheck "%s" 4*0a6a1f1dSLionel Sambuc // RUN: cat "%t/crash report spaces"-*.c | FileCheck --check-prefix=CHECKSRC "%s" 5*0a6a1f1dSLionel Sambuc // RUN: cat "%t/crash report spaces"-*.sh | FileCheck --check-prefix=CHECKSH "%s" 6*0a6a1f1dSLionel Sambuc // REQUIRES: crash-recovery 7*0a6a1f1dSLionel Sambuc 8*0a6a1f1dSLionel Sambuc // because of the glob (*.c, *.sh) 9*0a6a1f1dSLionel Sambuc // REQUIRES: shell 10*0a6a1f1dSLionel Sambuc 11*0a6a1f1dSLionel Sambuc #pragma clang __debug parser_crash 12*0a6a1f1dSLionel Sambuc // CHECK: Preprocessed source(s) and associated run script(s) are located at: 13*0a6a1f1dSLionel Sambuc // CHECK-NEXT: note: diagnostic msg: {{.*}}.c 14*0a6a1f1dSLionel Sambuc FOO 15*0a6a1f1dSLionel Sambuc // CHECKSRC: FOO 16*0a6a1f1dSLionel Sambuc // CHECKSH: "-cc1" 17*0a6a1f1dSLionel Sambuc // CHECKSH: "-main-file-name" "crash report spaces.c" 18*0a6a1f1dSLionel Sambuc // CHECKSH: "crash report spaces-{{[^ ]*}}.c" 19